<template>
  <div>

  </div>
</template>

<script lang="ts">
import { ref, defineComponent, getCurrentInstance,onMounted } from 'vue'
export default defineComponent({
  name: 'FuncRunTime',
  setup: () => {
    let {ctx}:any = getCurrentInstance();

    onMounted(() => {

    })
    
    const deepCloneFunc = () =>{
        console.log("clone，通过clone方法进行深拷贝");
        const objects = [{},{},{}];
        const objectsClone = ctx.$R.clone(objects);
        objectsClone === objectsClone; // => false;
        objects[0] === objectsClone[0] // => false;
    }

    return { deepCloneFunc }
  }
})
</script>

<style scoped>
a {
  color: #42b983;
}

label {
  margin: 0 0.5em;
  font-weight: bold;
}

code {
  background-color: #eee;
  padding: 2px 4px;
  border-radius: 4px;
  color: #304455;
}
</style>
